<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Logo测试页面</title>
    <style>
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 40px;
            text-align: center;
        }
        
        .logo-container {
            margin: 20px;
            display: inline-block;
        }
        
        .logo {
            width: 80px;
            height: 80px;
            margin: 10px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 10px;
        }
        
        .logo-label {
            margin-top: 10px;
            font-size: 14px;
            opacity: 0.8;
        }
        
        .test-info {
            background: rgba(255, 255, 255, 0.1);
            padding: 20px;
            border-radius: 10px;
            margin: 20px auto;
            max-width: 600px;
        }
    </style>
</head>
<body>
    <h1>Logo测试页面</h1>
    
    <div class="test-info">
        <p>这个页面用于测试logo文件是否能正常加载和显示</p>
        <p>如果下面的logo能正常显示，说明文件路径和格式都正确</p>
    </div>
    
    <div class="logo-container">
        <img src="/static/images/logo.svg" alt="原始Logo" class="logo" onerror="this.style.display='none'">
        <div class="logo-label">原始Logo (logo.svg)</div>
    </div>
    
    <div class="logo-container">
        <img src="/static/images/logo-simple.svg" alt="简化Logo" class="logo" onerror="this.style.display='none'">
        <div class="logo-label">简化Logo (logo-simple.svg)</div>
    </div>
    
    <div class="logo-container">
        <img src="/static/images/default-avatar.svg" alt="默认头像" class="logo" onerror="this.style.display='none'">
        <div class="logo-label">默认头像 (default-avatar.svg)</div>
    </div>
    
    <div class="test-info">
        <h3>测试结果说明：</h3>
        <ul style="text-align: left; display: inline-block;">
            <li>如果logo正常显示：文件路径和格式都正确</li>
            <li>如果logo不显示：可能是文件路径错误或格式不支持</li>
            <li>如果显示"朋"字：说明CSS备用样式生效</li>
        </ul>
    </div>
    
    <script>
        // 检查图片加载状态
        document.addEventListener('DOMContentLoaded', function() {
            const images = document.querySelectorAll('.logo');
            images.forEach((img, index) => {
                img.addEventListener('load', function() {
                    console.log(`Logo ${index + 1} 加载成功`);
                });
                
                img.addEventListener('error', function() {
                    console.log(`Logo ${index + 1} 加载失败`);
                    this.style.borderColor = '#e74c3c';
                    this.style.backgroundColor = 'rgba(231, 76, 60, 0.2)';
                });
            });
        });
    </script>
</body>
</html>
